package com.rebo.action;

import org.apache.log4j.Logger;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.InterceptorRef;
import org.apache.struts2.convention.annotation.InterceptorRefs;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;

@Namespace("/")
@ParentPackage("default")  
@InterceptorRefs({
	@InterceptorRef(value = "memberStack")
})

public class IndexAction extends BaseAction {

	private static final long serialVersionUID = 509165955793077939L;

	public String execute() throws Exception {
	
		return SUCCESS;
	}
	@Action(value="index", results={  
	        @Result(name="index",location="/index.jsp")
	    }) 

	public String index() {
		Logger log=Logger.getLogger(IndexAction.class);
		log.error("begin...");
		return "index";
	}
}
